<template>
  <el-pagination
      small
      background
      layout="prev, pager, next"
      :total=total_number
      :page-size=page_size
      class="mt-4"
      v-model:current-page="current_page"
  />
</template>

<script>
export default {
  name: "Address",
  data() {
    return {
      current_page:1,
    }
  },
  watch: {
    current_page(new_page){
      this.current_page=new_page
      this.$emit("onPageChange",new_page)
    }
  },
  props:['total_number','page_size']
}
</script>

<style scoped>

</style>